import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 获取指令查询列表
  getList: (query) => api.post(`${config.interfaces.type1}tradeOperate/getTrades`, query),
  // 撤单
  recallTrade: (query) => api.get(`${config.interfaces.type1}tradeOperate/cancelInstruction`, query),
  // 风控信息
  riskInfromation: (query) => api.post(`${config.interfaces.type5}risk-server/riskCtrl/query-warning-history`, query),
  // 成交信息
  clinchInfromation: (query) => api.get(`${config.interfaces.type1}bondTrade/getClinchDetail`, query),
};
